Use PEGetNthSQLExpression to retrieve one of the SQL expressions associated with a report. Use this function with PEGetHandleString. Use PEGetNSQLExpressions, to determine the number of SQL expressions in the report.
BOOL CRPE_API PEGetNthSQLExpression (
short printJob,
short expressionN,
HANDLE FAR *nameHandle,
short FAR *nameLength,
HANDLE FAR *textHandle,
short FAR *textLength );
Declare Function PEGetNthSQLExpression Lib "crpe32.dll" (ByVal printJob As Integer, ByVal expressionN As Integer, nameHandle As Long, nameLength As Integer, textHandle As Long, textLength As Integer) As Integer
function PEGetNthSQLExpression (
printJob: smallint;
expressionN: Smallint;
var nameHandle: Hwnd;
var nameLength: Smallint;
var textHandle: Hwnd;
var textLength: Smallint
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |